$(function() {
  $('#date_from').datepicker({
	 beforeShow: function (i, e) {
			//var z = jQuery(i).closest("#dialog").css("z-index") + 4;
			var z = 4000;
			e.dpDiv.css('z-index', z);
	}
  });
  $('#date_to').datepicker({
	 beforeShow: function (i, e) {
			//var z = jQuery(i).closest("#dialog").css("z-index") + 4;
			var z = 4000;
			e.dpDiv.css('z-index', z);
	}
  });
})
